674b1e923cf5ad9803a99ce0e4b566aed3421a47,functional-test/src/test/java/org/zanata/feature/misc/RateLimitRestAndUITest.java,RateLimitRestAndUITest,clientRequestAsAdmin,#String#,128

Before Change


    private static WebResource.Builder clientRequestAsAdmin(String path) {
        return Client
                .create()
                .resource(PropertiesHolder.getProperty(Constants.zanataInstance
                        .value()) + path)
                .header("X-Auth-User", "admin")
                .header("X-Auth-Token",
                        PropertiesHolder.getProperty(Constants.zanataApiKey
                                .value()))
                .header("Content-Type", "application/xml")
                .header("Accept", "application/xml");
    }

    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)

After Change


    }

    private static Invocation.Builder clientRequestAsAdmin(String path) {
        return new ResteasyClientBuilder().build()
                .target(PropertiesHolder.getProperty(Constants.zanataInstance
                        .value()) + path)
                .request(MediaType.APPLICATION_XML_TYPE)
                .header("X-Auth-User", "admin")
                .header("X-Auth-Token",
                        PropertiesHolder.getProperty(Constants.zanataApiKey
                                .value()))
                .header("Content-Type", "application/xml");
    }

    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)